.class public Lcom/donson/momark/view/a/t;
.super Landroid/widget/AdapterView;


# instance fields
.field private a:Ljava/util/LinkedList;

.field private b:F

.field private c:I

.field private d:I

.field private e:I

.field private f:I

.field private g:I

.field private h:Landroid/widget/Scroller;

.field private i:I

.field private j:Landroid/view/VelocityTracker;

.field private k:I

.field private l:Z

.field private m:Lcom/donson/momark/view/a/i;

.field private n:Landroid/widget/Adapter;

.field private o:I

.field private p:Lcom/donson/momark/view/a/u;

.field private q:Lcom/donson/momark/view/a/e;

.field private r:I

.field private s:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;

.field private w:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 2

    const/4 v1, -0x1

    invoke-direct {p0, p1}, Landroid/widget/AdapterView;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x2

    iput v0, p0, Lcom/donson/momark/view/a/t;->g:I

    const/4 v0, 0x0

    iput v0, p0, Lcom/donson/momark/view/a/t;->w:I

    iput v1, p0, Lcom/donson/momark/view/a/t;->k:I

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/donson/momark/view/a/t;->l:Z

    iput v1, p0, Lcom/donson/momark/view/a/t;->r:I

    new-instance v0, Lcom/donson/momark/view/a/y;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/a/y;-><init>(Lcom/donson/momark/view/a/t;)V

    iput-object v0, p0, Lcom/donson/momark/view/a/t;->s:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;

    const/4 v0, 0x3

    iput v0, p0, Lcom/donson/momark/view/a/t;->g:I

    invoke-direct {p0}, Lcom/donson/momark/view/a/t;->d()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 2

    const/4 v1, -0x1

    invoke-direct {p0, p1, p2}, Landroid/widget/AdapterView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/4 v0, 0x2

    iput v0, p0, Lcom/donson/momark/view/a/t;->g:I

    const/4 v0, 0x0

    iput v0, p0, Lcom/donson/momark/view/a/t;->w:I

    iput v1, p0, Lcom/donson/momark/view/a/t;->k:I

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/donson/momark/view/a/t;->l:Z

    iput v1, p0, Lcom/donson/momark/view/a/t;->r:I

    new-instance v0, Lcom/donson/momark/view/a/y;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/a/y;-><init>(Lcom/donson/momark/view/a/t;)V

    iput-object v0, p0, Lcom/donson/momark/view/a/t;->s:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;

    invoke-direct {p0}, Lcom/donson/momark/view/a/t;->d()V

    return-void
.end method

.method private a(IZLandroid/view/View;)Landroid/view/View;
    .locals 2

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->n:Landroid/widget/Adapter;

    invoke-interface {v0, p1, p3, p0}, Landroid/widget/Adapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    if-eqz p3, :cond_0

    const/4 v1, 0x1

    :goto_0
    invoke-direct {p0, v0, p2, v1}, Lcom/donson/momark/view/a/t;->a(Landroid/view/View;ZZ)Landroid/view/View;

    move-result-object v0

    return-object v0

    :cond_0
    const/4 v1, 0x0

    goto :goto_0
.end method

.method private a(Landroid/view/View;ZZ)Landroid/view/View;
    .locals 4

    const/4 v3, 0x0

    const/4 v2, -0x1

    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    if-nez v0, :cond_0

    new-instance v0, Landroid/widget/AbsListView$LayoutParams;

    const/4 v1, -0x2

    invoke-direct {v0, v2, v1, v3}, Landroid/widget/AbsListView$LayoutParams;-><init>(III)V

    :cond_0
    if-eqz p3, :cond_2

    if-eqz p2, :cond_1

    move v1, v2

    :goto_0
    invoke-virtual {p0, p1, v1, v0}, Lcom/donson/momark/view/a/t;->attachViewToParent(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    :goto_1
    return-object p1

    :cond_1
    move v1, v3

    goto :goto_0

    :cond_2
    if-eqz p2, :cond_3

    move v1, v2

    :goto_2
    const/4 v2, 0x1

    invoke-virtual {p0, p1, v1, v0, v2}, Lcom/donson/momark/view/a/t;->addViewInLayout(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;Z)Z

    goto :goto_1

    :cond_3
    move v1, v3

    goto :goto_2
.end method

.method static synthetic a(Lcom/donson/momark/view/a/t;)Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
    .locals 1

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->s:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;

    return-object v0
.end method

.method private a(I)V
    .locals 6

    const/4 v2, 0x0

    iget v0, p0, Lcom/donson/momark/view/a/t;->i:I

    sub-int v0, p1, v0

    iput v0, p0, Lcom/donson/momark/view/a/t;->o:I

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->isFinished()Z

    move-result v0

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getChildCount()I

    move-result v0

    const/4 v1, 0x1

    sub-int/2addr v0, v1

    invoke-static {p1, v0}, Ljava/lang/Math;->min(II)I

    move-result v0

    invoke-static {v2, v0}, Ljava/lang/Math;->max(II)I

    move-result v0

    iput v0, p0, Lcom/donson/momark/view/a/t;->k:I

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getWidth()I

    move-result v1

    mul-int/2addr v0, v1

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getScrollX()I

    move-result v1

    sub-int v3, v0, v1

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getScrollX()I

    move-result v1

    invoke-static {v3}, Ljava/lang/Math;->abs(I)I

    move-result v4

    mul-int/lit8 v5, v4, 0x2

    move v4, v2

    invoke-virtual/range {v0 .. v5}, Landroid/widget/Scroller;->startScroll(IIIII)V

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->invalidate()V

    goto :goto_0
.end method

.method private a(IZ)V
    .locals 6

    const/4 v4, 0x0

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getChildCount()I

    move-result v0

    const/4 v1, 0x1

    sub-int/2addr v0, v1

    invoke-static {p1, v0}, Ljava/lang/Math;->min(II)I

    move-result v0

    invoke-static {v4, v0}, Ljava/lang/Math;->max(II)I

    move-result v0

    iput v0, p0, Lcom/donson/momark/view/a/t;->i:I

    iget v0, p0, Lcom/donson/momark/view/a/t;->i:I

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getWidth()I

    move-result v1

    mul-int/2addr v0, v1

    iget-object v1, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v1}, Landroid/widget/Scroller;->getCurrX()I

    move-result v1

    sub-int v3, v0, v1

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    iget-object v1, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v1}, Landroid/widget/Scroller;->getCurrX()I

    move-result v1

    iget-object v2, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v2}, Landroid/widget/Scroller;->getCurrY()I

    move-result v2

    move v5, v4

    invoke-virtual/range {v0 .. v5}, Landroid/widget/Scroller;->startScroll(IIIII)V

    if-nez v3, :cond_0

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->getCurrX()I

    move-result v0

    add-int/2addr v0, v3

    iget-object v1, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v1}, Landroid/widget/Scroller;->getCurrY()I

    move-result v1

    iget-object v2, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v2}, Landroid/widget/Scroller;->getCurrX()I

    move-result v2

    add-int/2addr v2, v3

    iget-object v3, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v3}, Landroid/widget/Scroller;->getCurrY()I

    move-result v3

    invoke-virtual {p0, v0, v1, v2, v3}, Lcom/donson/momark/view/a/t;->onScrollChanged(IIII)V

    :cond_0
    if-eqz p2, :cond_1

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->invalidate()V

    :goto_0
    return-void

    :cond_1
    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->postInvalidate()V

    goto :goto_0
.end method

.method static synthetic a(Lcom/donson/momark/view/a/t;I)V
    .locals 0

    iput p1, p0, Lcom/donson/momark/view/a/t;->e:I

    return-void
.end method

.method static synthetic d(Lcom/donson/momark/view/a/t;)I
    .locals 1

    iget v0, p0, Lcom/donson/momark/view/a/t;->e:I

    return v0
.end method

.method private d()V
    .locals 2

    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    new-instance v0, Landroid/widget/Scroller;

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/widget/Scroller;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledTouchSlop()I

    move-result v1

    iput v1, p0, Lcom/donson/momark/view/a/t;->c:I

    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledMaximumFlingVelocity()I

    move-result v0

    iput v0, p0, Lcom/donson/momark/view/a/t;->f:I

    return-void
.end method

.method private d(I)V
    .locals 5

    const/4 v2, 0x0

    const/4 v4, 0x1

    if-nez p1, :cond_0

    :goto_0
    return-void

    :cond_0
    if-lez p1, :cond_2

    iget v0, p0, Lcom/donson/momark/view/a/t;->e:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/donson/momark/view/a/t;->e:I

    iget v0, p0, Lcom/donson/momark/view/a/t;->d:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/donson/momark/view/a/t;->d:I

    iget v0, p0, Lcom/donson/momark/view/a/t;->e:I

    iget v1, p0, Lcom/donson/momark/view/a/t;->g:I

    if-le v0, v1, :cond_7

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->removeFirst()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/donson/momark/view/a/t;->detachViewFromParent(Landroid/view/View;)V

    iget v1, p0, Lcom/donson/momark/view/a/t;->d:I

    sub-int/2addr v1, v4

    iput v1, p0, Lcom/donson/momark/view/a/t;->d:I

    :goto_1
    iget v1, p0, Lcom/donson/momark/view/a/t;->e:I

    iget v2, p0, Lcom/donson/momark/view/a/t;->g:I

    add-int/2addr v1, v2

    iget-object v2, p0, Lcom/donson/momark/view/a/t;->n:Landroid/widget/Adapter;

    invoke-interface {v2}, Landroid/widget/Adapter;->getCount()I

    move-result v2

    if-ge v1, v2, :cond_1

    iget-object v2, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    invoke-direct {p0, v1, v4, v0}, Lcom/donson/momark/view/a/t;->a(IZLandroid/view/View;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/util/LinkedList;->addLast(Ljava/lang/Object;)V

    :cond_1
    :goto_2
    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->requestLayout()V

    iget v0, p0, Lcom/donson/momark/view/a/t;->d:I

    invoke-direct {p0, v0, v4}, Lcom/donson/momark/view/a/t;->a(IZ)V

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->q:Lcom/donson/momark/view/a/e;

    if-eqz v0, :cond_4

    iget v0, p0, Lcom/donson/momark/view/a/t;->d:I

    iget-object v1, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    invoke-virtual {v1}, Ljava/util/LinkedList;->size()I

    move-result v1

    sub-int/2addr v1, v4

    if-le v0, v1, :cond_3

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->size()I

    move-result v0

    sub-int/2addr v0, v4

    iput v0, p0, Lcom/donson/momark/view/a/t;->e:I

    const-string v0, "donson.momark"

    const-string v1, " ViewFlow.postViewSwitched 40019:rich picture scroll indexoutofboundsexception."

    invoke-static {v0, v1}, Lcom/donson/momark/util/t;->d(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :cond_2
    iget v0, p0, Lcom/donson/momark/view/a/t;->e:I

    sub-int/2addr v0, v4

    iput v0, p0, Lcom/donson/momark/view/a/t;->e:I

    iget v0, p0, Lcom/donson/momark/view/a/t;->d:I

    sub-int/2addr v0, v4

    iput v0, p0, Lcom/donson/momark/view/a/t;->d:I

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->n:Landroid/widget/Adapter;

    invoke-interface {v0}, Landroid/widget/Adapter;->getCount()I

    move-result v0

    sub-int/2addr v0, v4

    iget v1, p0, Lcom/donson/momark/view/a/t;->e:I

    sub-int/2addr v0, v1

    iget v1, p0, Lcom/donson/momark/view/a/t;->g:I

    if-le v0, v1, :cond_6

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->removeLast()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/donson/momark/view/a/t;->detachViewFromParent(Landroid/view/View;)V

    :goto_3
    iget v1, p0, Lcom/donson/momark/view/a/t;->e:I

    iget v2, p0, Lcom/donson/momark/view/a/t;->g:I

    sub-int/2addr v1, v2

    const/4 v2, -0x1

    if-le v1, v2, :cond_1

    iget-object v2, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    const/4 v3, 0x0

    invoke-direct {p0, v1, v3, v0}, Lcom/donson/momark/view/a/t;->a(IZLandroid/view/View;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/util/LinkedList;->addFirst(Ljava/lang/Object;)V

    iget v0, p0, Lcom/donson/momark/view/a/t;->d:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/donson/momark/view/a/t;->d:I

    goto :goto_2

    :cond_3
    iget-object v1, p0, Lcom/donson/momark/view/a/t;->q:Lcom/donson/momark/view/a/e;

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    iget v2, p0, Lcom/donson/momark/view/a/t;->d:I

    invoke-virtual {v0, v2}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    iget v2, p0, Lcom/donson/momark/view/a/t;->e:I

    invoke-interface {v1, v0, v2}, Lcom/donson/momark/view/a/i;->a(Landroid/view/View;I)V

    :cond_4
    iget-object v0, p0, Lcom/donson/momark/view/a/t;->m:Lcom/donson/momark/view/a/i;

    if-eqz v0, :cond_5

    iget-object v1, p0, Lcom/donson/momark/view/a/t;->m:Lcom/donson/momark/view/a/i;

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    iget v2, p0, Lcom/donson/momark/view/a/t;->d:I

    invoke-virtual {v0, v2}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    iget v2, p0, Lcom/donson/momark/view/a/t;->e:I

    invoke-interface {v1, v0, v2}, Lcom/donson/momark/view/a/i;->a(Landroid/view/View;I)V

    :cond_5
    invoke-direct {p0}, Lcom/donson/momark/view/a/t;->h()V

    goto/16 :goto_0

    :cond_6
    move-object v0, v2

    goto :goto_3

    :cond_7
    move-object v0, v2

    goto/16 :goto_1
.end method

.method static synthetic e(Lcom/donson/momark/view/a/t;)I
    .locals 1

    iget v0, p0, Lcom/donson/momark/view/a/t;->d:I

    return v0
.end method

.method private e()V
    .locals 3

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getWidth()I

    move-result v0

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getScrollX()I

    move-result v1

    div-int/lit8 v2, v0, 0x2

    add-int/2addr v1, v2

    div-int v0, v1, v0

    invoke-direct {p0, v0}, Lcom/donson/momark/view/a/t;->a(I)V

    return-void
.end method

.method static synthetic g(Lcom/donson/momark/view/a/t;)Landroid/widget/Adapter;
    .locals 1

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->n:Landroid/widget/Adapter;

    return-object v0
.end method

.method private g()V
    .locals 5

    const/4 v4, 0x1

    invoke-direct {p0}, Lcom/donson/momark/view/a/t;->h()V

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->clear()V

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->removeAllViewsInLayout()V

    const/4 v0, 0x0

    iget v1, p0, Lcom/donson/momark/view/a/t;->e:I

    iget v2, p0, Lcom/donson/momark/view/a/t;->g:I

    sub-int/2addr v1, v2

    invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I

    move-result v0

    :goto_0
    iget-object v1, p0, Lcom/donson/momark/view/a/t;->n:Landroid/widget/Adapter;

    invoke-interface {v1}, Landroid/widget/Adapter;->getCount()I

    move-result v1

    iget v2, p0, Lcom/donson/momark/view/a/t;->e:I

    iget v3, p0, Lcom/donson/momark/view/a/t;->g:I

    add-int/2addr v2, v3

    add-int/lit8 v2, v2, 0x1

    invoke-static {v1, v2}, Ljava/lang/Math;->min(II)I

    move-result v1

    if-lt v0, v1, :cond_0

    invoke-direct {p0}, Lcom/donson/momark/view/a/t;->h()V

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->requestLayout()V

    return-void

    :cond_0
    iget-object v1, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    const/4 v2, 0x0

    invoke-direct {p0, v0, v4, v2}, Lcom/donson/momark/view/a/t;->a(IZLandroid/view/View;)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/util/LinkedList;->addLast(Ljava/lang/Object;)V

    iget v1, p0, Lcom/donson/momark/view/a/t;->e:I

    if-ne v0, v1, :cond_1

    iget-object v1, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    invoke-virtual {v1}, Ljava/util/LinkedList;->size()I

    move-result v1

    sub-int/2addr v1, v4

    iput v1, p0, Lcom/donson/momark/view/a/t;->d:I

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method private h()V
    .locals 3

    const-string v0, "donson.momark"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, " ViewFlow.logBuffer Size of mLoadedViews: "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    invoke-virtual {v2}, Ljava/util/LinkedList;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "X: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v2}, Landroid/widget/Scroller;->getCurrX()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ", Y: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v2}, Landroid/widget/Scroller;->getCurrY()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/donson/momark/util/t;->d(Ljava/lang/String;Ljava/lang/String;)V

    const-string v0, "donson.momark"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, " ViewFlow.logBuffer IndexInAdapter: "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget v2, p0, Lcom/donson/momark/view/a/t;->e:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ", IndexInBuffer: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/donson/momark/view/a/t;->d:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/donson/momark/util/t;->d(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method static synthetic h(Lcom/donson/momark/view/a/t;)V
    .locals 0

    invoke-direct {p0}, Lcom/donson/momark/view/a/t;->g()V

    return-void
.end method


# virtual methods
.method public a()I
    .locals 1

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->n:Landroid/widget/Adapter;

    invoke-interface {v0}, Landroid/widget/Adapter;->getCount()I

    move-result v0

    return v0
.end method

.method public a(Landroid/widget/Adapter;I)V
    .locals 2

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->n:Landroid/widget/Adapter;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->n:Landroid/widget/Adapter;

    iget-object v1, p0, Lcom/donson/momark/view/a/t;->p:Lcom/donson/momark/view/a/u;

    invoke-interface {v0, v1}, Landroid/widget/Adapter;->unregisterDataSetObserver(Landroid/database/DataSetObserver;)V

    :cond_0
    iput-object p1, p0, Lcom/donson/momark/view/a/t;->n:Landroid/widget/Adapter;

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->n:Landroid/widget/Adapter;

    if-eqz v0, :cond_1

    new-instance v0, Lcom/donson/momark/view/a/u;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/a/u;-><init>(Lcom/donson/momark/view/a/t;)V

    iput-object v0, p0, Lcom/donson/momark/view/a/t;->p:Lcom/donson/momark/view/a/u;

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->n:Landroid/widget/Adapter;

    iget-object v1, p0, Lcom/donson/momark/view/a/t;->p:Lcom/donson/momark/view/a/u;

    invoke-interface {v0, v1}, Landroid/widget/Adapter;->registerDataSetObserver(Landroid/database/DataSetObserver;)V

    :cond_1
    iget-object v0, p0, Lcom/donson/momark/view/a/t;->n:Landroid/widget/Adapter;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->n:Landroid/widget/Adapter;

    invoke-interface {v0}, Landroid/widget/Adapter;->getCount()I

    move-result v0

    if-nez v0, :cond_3

    :cond_2
    :goto_0
    return-void

    :cond_3
    invoke-virtual {p0, p2}, Lcom/donson/momark/view/a/t;->setSelection(I)V

    goto :goto_0
.end method

.method public a(Lcom/donson/momark/view/a/e;)V
    .locals 1

    iput-object p1, p0, Lcom/donson/momark/view/a/t;->q:Lcom/donson/momark/view/a/e;

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->q:Lcom/donson/momark/view/a/e;

    invoke-interface {v0, p0}, Lcom/donson/momark/view/a/e;->a(Lcom/donson/momark/view/a/t;)V

    return-void
.end method

.method public computeScroll()V
    .locals 5

    const/4 v4, -0x1

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->computeScrollOffset()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->getCurrX()I

    move-result v0

    iget-object v1, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v1}, Landroid/widget/Scroller;->getCurrY()I

    move-result v1

    invoke-virtual {p0, v0, v1}, Lcom/donson/momark/view/a/t;->scrollTo(II)V

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->postInvalidate()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget v0, p0, Lcom/donson/momark/view/a/t;->k:I

    if-eq v0, v4, :cond_0

    const/4 v0, 0x0

    iget v1, p0, Lcom/donson/momark/view/a/t;->k:I

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getChildCount()I

    move-result v2

    const/4 v3, 0x1

    sub-int/2addr v2, v3

    invoke-static {v1, v2}, Ljava/lang/Math;->min(II)I

    move-result v1

    invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I

    move-result v0

    iput v0, p0, Lcom/donson/momark/view/a/t;->i:I

    iput v4, p0, Lcom/donson/momark/view/a/t;->k:I

    iget v0, p0, Lcom/donson/momark/view/a/t;->o:I

    invoke-direct {p0, v0}, Lcom/donson/momark/view/a/t;->d(I)V

    goto :goto_0
.end method

.method public getAdapter()Landroid/widget/Adapter;
    .locals 1

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->n:Landroid/widget/Adapter;

    return-object v0
.end method

.method public getSelectedItemPosition()I
    .locals 1

    iget v0, p0, Lcom/donson/momark/view/a/t;->e:I

    return v0
.end method

.method public getSelectedView()Landroid/view/View;
    .locals 2

    iget v0, p0, Lcom/donson/momark/view/a/t;->d:I

    iget-object v1, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    invoke-virtual {v1}, Ljava/util/LinkedList;->size()I

    move-result v1

    if-ge v0, v1, :cond_0

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    iget v1, p0, Lcom/donson/momark/view/a/t;->d:I

    invoke-virtual {v0, v1}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Landroid/view/View;

    move-object v0, p0

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 2

    iget v0, p1, Landroid/content/res/Configuration;->orientation:I

    iget v1, p0, Lcom/donson/momark/view/a/t;->r:I

    if-eq v0, v1, :cond_0

    iget v0, p1, Landroid/content/res/Configuration;->orientation:I

    iput v0, p0, Lcom/donson/momark/view/a/t;->r:I

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v0

    iget-object v1, p0, Lcom/donson/momark/view/a/t;->s:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;

    invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V

    :cond_0
    return-void
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 5

    const/16 v2, 0x3e8

    const/4 v4, 0x0

    const/4 v3, 0x1

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getChildCount()I

    move-result v0

    if-nez v0, :cond_0

    move v0, v4

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lcom/donson/momark/view/a/t;->j:Landroid/view/VelocityTracker;

    if-nez v0, :cond_1

    invoke-static {}, Landroid/view/VelocityTracker;->obtain()Landroid/view/VelocityTracker;

    move-result-object v0

    iput-object v0, p0, Lcom/donson/momark/view/a/t;->j:Landroid/view/VelocityTracker;

    :cond_1
    iget-object v0, p0, Lcom/donson/momark/view/a/t;->j:Landroid/view/VelocityTracker;

    invoke-virtual {v0, p1}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v1

    packed-switch v0, :pswitch_data_0

    :cond_2
    :goto_1
    move v0, v4

    goto :goto_0

    :pswitch_0
    iget-object v0, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->isFinished()Z

    move-result v0

    if-nez v0, :cond_3

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->abortAnimation()V

    :cond_3
    iput v1, p0, Lcom/donson/momark/view/a/t;->b:F

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->isFinished()Z

    move-result v0

    if-eqz v0, :cond_4

    move v0, v4

    :goto_2
    iput v0, p0, Lcom/donson/momark/view/a/t;->w:I

    goto :goto_1

    :cond_4
    move v0, v3

    goto :goto_2

    :pswitch_1
    iget v0, p0, Lcom/donson/momark/view/a/t;->b:F

    sub-float v0, v1, v0

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v0

    float-to-int v0, v0

    iget v2, p0, Lcom/donson/momark/view/a/t;->c:I

    if-le v0, v2, :cond_7

    move v0, v3

    :goto_3
    if-eqz v0, :cond_5

    iput v3, p0, Lcom/donson/momark/view/a/t;->w:I

    :cond_5
    iget v0, p0, Lcom/donson/momark/view/a/t;->w:I

    if-ne v0, v3, :cond_2

    iget v0, p0, Lcom/donson/momark/view/a/t;->b:F

    sub-float/2addr v0, v1

    float-to-int v0, v0

    iput v1, p0, Lcom/donson/momark/view/a/t;->b:F

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getScrollX()I

    move-result v1

    if-gez v0, :cond_8

    if-lez v1, :cond_6

    neg-int v1, v1

    invoke-static {v1, v0}, Ljava/lang/Math;->max(II)I

    move-result v0

    invoke-virtual {p0, v0, v4}, Lcom/donson/momark/view/a/t;->scrollBy(II)V

    :cond_6
    :goto_4
    move v0, v3

    goto :goto_0

    :cond_7
    move v0, v4

    goto :goto_3

    :cond_8
    if-lez v0, :cond_6

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getChildCount()I

    move-result v2

    sub-int/2addr v2, v3

    invoke-virtual {p0, v2}, Lcom/donson/momark/view/a/t;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/View;->getRight()I

    move-result v2

    sub-int v1, v2, v1

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getWidth()I

    move-result v2

    sub-int/2addr v1, v2

    if-lez v1, :cond_6

    invoke-static {v1, v0}, Ljava/lang/Math;->min(II)I

    move-result v0

    invoke-virtual {p0, v0, v4}, Lcom/donson/momark/view/a/t;->scrollBy(II)V

    goto :goto_4

    :pswitch_2
    iget v0, p0, Lcom/donson/momark/view/a/t;->w:I

    if-ne v0, v3, :cond_9

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->j:Landroid/view/VelocityTracker;

    iget v1, p0, Lcom/donson/momark/view/a/t;->f:I

    int-to-float v1, v1

    invoke-virtual {v0, v2, v1}, Landroid/view/VelocityTracker;->computeCurrentVelocity(IF)V

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->getXVelocity()F

    move-result v0

    float-to-int v0, v0

    if-le v0, v2, :cond_a

    iget v1, p0, Lcom/donson/momark/view/a/t;->i:I

    if-lez v1, :cond_a

    iget v0, p0, Lcom/donson/momark/view/a/t;->i:I

    sub-int/2addr v0, v3

    invoke-direct {p0, v0}, Lcom/donson/momark/view/a/t;->a(I)V

    :goto_5
    iget-object v0, p0, Lcom/donson/momark/view/a/t;->j:Landroid/view/VelocityTracker;

    if-eqz v0, :cond_9

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->j:Landroid/view/VelocityTracker;

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->recycle()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/donson/momark/view/a/t;->j:Landroid/view/VelocityTracker;

    :cond_9
    iput v4, p0, Lcom/donson/momark/view/a/t;->w:I

    goto/16 :goto_1

    :cond_a
    const/16 v1, -0x3e8

    if-ge v0, v1, :cond_b

    iget v0, p0, Lcom/donson/momark/view/a/t;->i:I

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getChildCount()I

    move-result v1

    sub-int/2addr v1, v3

    if-ge v0, v1, :cond_b

    iget v0, p0, Lcom/donson/momark/view/a/t;->i:I

    add-int/lit8 v0, v0, 0x1

    invoke-direct {p0, v0}, Lcom/donson/momark/view/a/t;->a(I)V

    goto :goto_5

    :cond_b
    invoke-direct {p0}, Lcom/donson/momark/view/a/t;->e()V

    goto :goto_5

    :pswitch_3
    iput v4, p0, Lcom/donson/momark/view/a/t;->w:I

    goto/16 :goto_1

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_2
        :pswitch_1
        :pswitch_3
    .end packed-switch
.end method

.method protected onLayout(ZIIII)V
    .locals 8

    const/4 v7, 0x0

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getChildCount()I

    move-result v0

    move v1, v7

    move v2, v7

    :goto_0
    if-lt v1, v0, :cond_0

    return-void

    :cond_0
    invoke-virtual {p0, v1}, Lcom/donson/momark/view/a/t;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3}, Landroid/view/View;->getVisibility()I

    move-result v4

    const/16 v5, 0x8

    if-eq v4, v5, :cond_1

    invoke-virtual {v3}, Landroid/view/View;->getMeasuredWidth()I

    move-result v4

    add-int v5, v2, v4

    invoke-virtual {v3}, Landroid/view/View;->getMeasuredHeight()I

    move-result v6

    invoke-virtual {v3, v2, v7, v5, v6}, Landroid/view/View;->layout(IIII)V

    add-int/2addr v2, v4

    :cond_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method

.method protected onMeasure(II)V
    .locals 6

    const/4 v1, 0x0

    invoke-super {p0, p1, p2}, Landroid/widget/AdapterView;->onMeasure(II)V

    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v2

    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I

    invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getChildCount()I

    move-result v0

    move v3, v1

    :goto_0
    if-lt v3, v0, :cond_1

    iget-boolean v0, p0, Lcom/donson/momark/view/a/t;->l:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    iget v3, p0, Lcom/donson/momark/view/a/t;->i:I

    mul-int/2addr v3, v2

    move v2, v1

    move v4, v1

    move v5, v1

    invoke-virtual/range {v0 .. v5}, Landroid/widget/Scroller;->startScroll(IIIII)V

    iput-boolean v1, p0, Lcom/donson/momark/view/a/t;->l:Z

    :cond_0
    return-void

    :cond_1
    invoke-virtual {p0, v3}, Lcom/donson/momark/view/a/t;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    invoke-virtual {v4, p1, p2}, Landroid/view/View;->measure(II)V

    add-int/lit8 v3, v3, 0x1

    goto :goto_0
.end method

.method protected onScrollChanged(IIII)V
    .locals 2

    invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/AdapterView;->onScrollChanged(IIII)V

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->q:Lcom/donson/momark/view/a/e;

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/donson/momark/view/a/t;->e:I

    iget v1, p0, Lcom/donson/momark/view/a/t;->d:I

    sub-int/2addr v0, v1

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getWidth()I

    move-result v1

    mul-int/2addr v0, v1

    add-int/2addr v0, p1

    iget-object v1, p0, Lcom/donson/momark/view/a/t;->q:Lcom/donson/momark/view/a/e;

    invoke-interface {v1, v0, p2, p3, p4}, Lcom/donson/momark/view/a/e;->a(IIII)V

    :cond_0
    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 5

    const/16 v2, 0x3e8

    const/4 v4, 0x0

    const/4 v3, 0x1

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getChildCount()I

    move-result v0

    if-nez v0, :cond_0

    move v0, v4

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lcom/donson/momark/view/a/t;->j:Landroid/view/VelocityTracker;

    if-nez v0, :cond_1

    invoke-static {}, Landroid/view/VelocityTracker;->obtain()Landroid/view/VelocityTracker;

    move-result-object v0

    iput-object v0, p0, Lcom/donson/momark/view/a/t;->j:Landroid/view/VelocityTracker;

    :cond_1
    iget-object v0, p0, Lcom/donson/momark/view/a/t;->j:Landroid/view/VelocityTracker;

    invoke-virtual {v0, p1}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v1

    packed-switch v0, :pswitch_data_0

    :cond_2
    :goto_1
    move v0, v3

    goto :goto_0

    :pswitch_0
    iget-object v0, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->isFinished()Z

    move-result v0

    if-nez v0, :cond_3

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->abortAnimation()V

    :cond_3
    iput v1, p0, Lcom/donson/momark/view/a/t;->b:F

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->isFinished()Z

    move-result v0

    if-eqz v0, :cond_4

    move v0, v4

    :goto_2
    iput v0, p0, Lcom/donson/momark/view/a/t;->w:I

    goto :goto_1

    :cond_4
    move v0, v3

    goto :goto_2

    :pswitch_1
    iget v0, p0, Lcom/donson/momark/view/a/t;->b:F

    sub-float v0, v1, v0

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v0

    float-to-int v0, v0

    iget v2, p0, Lcom/donson/momark/view/a/t;->c:I

    if-le v0, v2, :cond_7

    move v0, v3

    :goto_3
    if-eqz v0, :cond_5

    iput v3, p0, Lcom/donson/momark/view/a/t;->w:I

    :cond_5
    iget v0, p0, Lcom/donson/momark/view/a/t;->w:I

    if-ne v0, v3, :cond_2

    iget v0, p0, Lcom/donson/momark/view/a/t;->b:F

    sub-float/2addr v0, v1

    float-to-int v0, v0

    iput v1, p0, Lcom/donson/momark/view/a/t;->b:F

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getScrollX()I

    move-result v1

    if-gez v0, :cond_8

    if-lez v1, :cond_6

    neg-int v1, v1

    invoke-static {v1, v0}, Ljava/lang/Math;->max(II)I

    move-result v0

    invoke-virtual {p0, v0, v4}, Lcom/donson/momark/view/a/t;->scrollBy(II)V

    :cond_6
    :goto_4
    move v0, v3

    goto :goto_0

    :cond_7
    move v0, v4

    goto :goto_3

    :cond_8
    if-lez v0, :cond_6

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getChildCount()I

    move-result v2

    sub-int/2addr v2, v3

    invoke-virtual {p0, v2}, Lcom/donson/momark/view/a/t;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/View;->getRight()I

    move-result v2

    sub-int v1, v2, v1

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getWidth()I

    move-result v2

    sub-int/2addr v1, v2

    if-lez v1, :cond_6

    invoke-static {v1, v0}, Ljava/lang/Math;->min(II)I

    move-result v0

    invoke-virtual {p0, v0, v4}, Lcom/donson/momark/view/a/t;->scrollBy(II)V

    goto :goto_4

    :pswitch_2
    iget v0, p0, Lcom/donson/momark/view/a/t;->w:I

    if-ne v0, v3, :cond_9

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->j:Landroid/view/VelocityTracker;

    iget v1, p0, Lcom/donson/momark/view/a/t;->f:I

    int-to-float v1, v1

    invoke-virtual {v0, v2, v1}, Landroid/view/VelocityTracker;->computeCurrentVelocity(IF)V

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->getXVelocity()F

    move-result v0

    float-to-int v0, v0

    if-le v0, v2, :cond_a

    iget v1, p0, Lcom/donson/momark/view/a/t;->i:I

    if-lez v1, :cond_a

    iget v0, p0, Lcom/donson/momark/view/a/t;->i:I

    sub-int/2addr v0, v3

    invoke-direct {p0, v0}, Lcom/donson/momark/view/a/t;->a(I)V

    :goto_5
    iget-object v0, p0, Lcom/donson/momark/view/a/t;->j:Landroid/view/VelocityTracker;

    if-eqz v0, :cond_9

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->j:Landroid/view/VelocityTracker;

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->recycle()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/donson/momark/view/a/t;->j:Landroid/view/VelocityTracker;

    :cond_9
    iput v4, p0, Lcom/donson/momark/view/a/t;->w:I

    goto/16 :goto_1

    :cond_a
    const/16 v1, -0x3e8

    if-ge v0, v1, :cond_b

    iget v0, p0, Lcom/donson/momark/view/a/t;->i:I

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->getChildCount()I

    move-result v1

    sub-int/2addr v1, v3

    if-ge v0, v1, :cond_b

    iget v0, p0, Lcom/donson/momark/view/a/t;->i:I

    add-int/lit8 v0, v0, 0x1

    invoke-direct {p0, v0}, Lcom/donson/momark/view/a/t;->a(I)V

    goto :goto_5

    :cond_b
    invoke-direct {p0}, Lcom/donson/momark/view/a/t;->e()V

    goto :goto_5

    :pswitch_3
    invoke-direct {p0}, Lcom/donson/momark/view/a/t;->e()V

    iput v4, p0, Lcom/donson/momark/view/a/t;->w:I

    goto/16 :goto_1

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_2
        :pswitch_1
        :pswitch_3
    .end packed-switch
.end method

.method public setAdapter(Landroid/widget/Adapter;)V
    .locals 1

    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Lcom/donson/momark/view/a/t;->a(Landroid/widget/Adapter;I)V

    return-void
.end method

.method public setSelection(I)V
    .locals 11

    const/4 v10, 0x0

    const/4 v9, 0x1

    const/4 v8, 0x0

    const/4 v0, -0x1

    iput v0, p0, Lcom/donson/momark/view/a/t;->k:I

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->h:Landroid/widget/Scroller;

    invoke-virtual {v0, v9}, Landroid/widget/Scroller;->forceFinished(Z)V

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->n:Landroid/widget/Adapter;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-static {p1, v8}, Ljava/lang/Math;->max(II)I

    move-result v0

    iget-object v1, p0, Lcom/donson/momark/view/a/t;->n:Landroid/widget/Adapter;

    invoke-interface {v1}, Landroid/widget/Adapter;->getCount()I

    move-result v1

    sub-int/2addr v1, v9

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v1

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    :goto_1
    iget-object v0, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-virtual {v2}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_4

    move-object v0, v10

    :goto_2
    invoke-direct {p0, v1, v9, v0}, Lcom/donson/momark/view/a/t;->a(IZLandroid/view/View;)Landroid/view/View;

    move-result-object v3

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    invoke-virtual {v0, v3}, Ljava/util/LinkedList;->addLast(Ljava/lang/Object;)V

    move v4, v9

    :goto_3
    iget v0, p0, Lcom/donson/momark/view/a/t;->g:I

    sub-int/2addr v0, v4

    if-gez v0, :cond_5

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    invoke-virtual {v0, v3}, Ljava/util/LinkedList;->indexOf(Ljava/lang/Object;)I

    move-result v0

    iput v0, p0, Lcom/donson/momark/view/a/t;->d:I

    iput v1, p0, Lcom/donson/momark/view/a/t;->e:I

    invoke-virtual {v2}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_4
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_a

    invoke-virtual {p0}, Lcom/donson/momark/view/a/t;->requestLayout()V

    iget v0, p0, Lcom/donson/momark/view/a/t;->d:I

    invoke-direct {p0, v0, v8}, Lcom/donson/momark/view/a/t;->a(IZ)V

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->q:Lcom/donson/momark/view/a/e;

    if-eqz v0, :cond_2

    iget-object v1, p0, Lcom/donson/momark/view/a/t;->q:Lcom/donson/momark/view/a/e;

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    iget v2, p0, Lcom/donson/momark/view/a/t;->d:I

    invoke-virtual {v0, v2}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    iget v2, p0, Lcom/donson/momark/view/a/t;->e:I

    invoke-interface {v1, v0, v2}, Lcom/donson/momark/view/a/i;->a(Landroid/view/View;I)V

    :cond_2
    iget-object v0, p0, Lcom/donson/momark/view/a/t;->m:Lcom/donson/momark/view/a/i;

    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/donson/momark/view/a/t;->m:Lcom/donson/momark/view/a/i;

    iget-object v0, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    iget v2, p0, Lcom/donson/momark/view/a/t;->d:I

    invoke-virtual {v0, v2}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    iget v2, p0, Lcom/donson/momark/view/a/t;->e:I

    invoke-interface {v1, v0, v2}, Lcom/donson/momark/view/a/i;->a(Landroid/view/View;I)V

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->remove()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-virtual {p0, v0}, Lcom/donson/momark/view/a/t;->detachViewFromParent(Landroid/view/View;)V

    goto :goto_1

    :cond_4
    invoke-virtual {v2, v8}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    goto :goto_2

    :cond_5
    sub-int v5, v1, v4

    add-int v6, v1, v4

    if-ltz v5, :cond_6

    iget-object v7, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_8

    move-object v0, v10

    :goto_5
    invoke-direct {p0, v5, v8, v0}, Lcom/donson/momark/view/a/t;->a(IZLandroid/view/View;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v7, v0}, Ljava/util/LinkedList;->addFirst(Ljava/lang/Object;)V

    :cond_6
    iget-object v0, p0, Lcom/donson/momark/view/a/t;->n:Landroid/widget/Adapter;

    invoke-interface {v0}, Landroid/widget/Adapter;->getCount()I

    move-result v0

    if-ge v6, v0, :cond_7

    iget-object v5, p0, Lcom/donson/momark/view/a/t;->a:Ljava/util/LinkedList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_9

    move-object v0, v10

    :goto_6
    invoke-direct {p0, v6, v9, v0}, Lcom/donson/momark/view/a/t;->a(IZLandroid/view/View;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v5, v0}, Ljava/util/LinkedList;->addLast(Ljava/lang/Object;)V

    :cond_7
    add-int/lit8 v0, v4, 0x1

    move v4, v0

    goto/16 :goto_3

    :cond_8
    invoke-virtual {v2, v8}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    goto :goto_5

    :cond_9
    invoke-virtual {v2, v8}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    goto :goto_6

    :cond_a
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    invoke-virtual {p0, v0, v8}, Lcom/donson/momark/view/a/t;->removeDetachedView(Landroid/view/View;Z)V

    goto/16 :goto_4
.end method
